package com.yidu.hbatsams.service.Impl;

import com.github.pagehelper.PageHelper;
import com.yidu.hbatsams.dao.AtsSchemeAthleteMapperfx;
import com.yidu.hbatsams.domain.AtsEmpAthlete;
import com.yidu.hbatsams.domain.AtsSchemeAthlete;
import com.yidu.hbatsams.service.AtsSchemeAthleteServicefx;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AtsSchemeAthleteImplfx implements AtsSchemeAthleteServicefx {
    @Resource
    private AtsSchemeAthleteMapperfx atsSchemeAthleteMapperfx;
    @Override
    public int deleteByPrimaryKey(Integer saId) {
        return atsSchemeAthleteMapperfx.deleteByPrimaryKey(saId);
    }

    @Override
    public int insert(AtsSchemeAthlete record) {
        return 0;
    }


    @Override
    public int insertSelective(AtsSchemeAthlete record) {
        return atsSchemeAthleteMapperfx.insertSelective(record);
    }

    @Override
    public List<AtsSchemeAthlete> selectByPrimaryKey(Integer saId) {
        return null;
    }

    @Override
    public List<AtsSchemeAthlete> findAll(Integer pageSize, Integer pageNum,String schemeType) {
        PageHelper.startPage(pageNum,pageSize);
        System.out.println();
        List<AtsSchemeAthlete> list = atsSchemeAthleteMapperfx.findAll(schemeType);
        return list;
    }

    @Override
    public int count(String schemeType) {
        return atsSchemeAthleteMapperfx.count( schemeType);
    }


    @Override
    public int updateByPrimaryKeySelective(AtsSchemeAthlete record) {
        return atsSchemeAthleteMapperfx.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(AtsSchemeAthlete record) {
        return 0;
    }

    @Override
    public List<AtsEmpAthlete> findAllselect(String athleteName) {

        return null;
    }


}
